home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
Other Langs
/
MacPerl ƒ
/
Perl Source ƒ
/
MacPerl
/
Demo
/
PlainPerl
< prev
next >
Wrap
Text File
|
1993-10-11
|
611b
|
34 lines
#!/usr/bin/perl
print "Hi testers, I'm the first Perl program running under the\n";
print "new standalone Perl.\n";
print "Do you like me ? ";
$_ = <>;
unless (/yes/i || /yeah/i || /yup/i || /sure/i) {
print "I'm sorry to hear that!\n";
die;
}
open (OTHER, ">Dev:Console:I Can Do Multiple Windows Now!") || die;
print OTHER "This one is read only\n";
open (THIRD, "+>Dev:Console:As many as you like!") || die;
print THIRD "This one is read/write\n";
print THIRD "Now how do you like that?? ";
$_ = <THIRD>;
chop;
print "You said \"$_\"? I thought you would.\n";
print "Bye\n";
&MacPerl'Quit(1);